package com.woyowodaows.fragment.mine;

import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.woyowodaows.R;
import com.woyowodaows.adapter.mine.ServiceManageMentAdapter;
import com.woyowodaows.base.BaseFragment;
import com.woyowodaows.bean.home.OrderInfo;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2019/3/29.
 *    报修管理   待评价
 */

public class ServiceManagemenTremainEvaluatedFragement extends BaseFragment {
    @BindView(R.id.rv_data)
    RecyclerView rvData;
    @BindView(R.id.sw_refresh)
    SwipeRefreshLayout swRefresh;
    private ServiceManageMentAdapter mAapter;
    private List<OrderInfo> orderList=new ArrayList<>();

    @Override
    protected void initView() {
        ButterKnife.bind(this, layoutView);
        mAapter = new ServiceManageMentAdapter();
        LinearLayoutManager layoutManager = new LinearLayoutManager(mContext);
        rvData.setLayoutManager(layoutManager);
        rvData.setAdapter(mAapter);
        OrderInfo info1=new OrderInfo();
        info1.setName("维修维修维修啦啦啦888888888888888");
        OrderInfo info2=new OrderInfo();
        info2.setName("维修维修维修啦啦啦88888888888888");
        orderList.add(info1);
        orderList.add(info2);
        mAapter.setNewData(orderList);
        mAapter.notifyDataSetChanged();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_service_management_tremain_evalueated;
    }
}
